package com.sixth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @program: self-tui-education
 * @description:
 * @author: 老魏
 * @create: 2022-04-21 23:01
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_check_course")
@ApiModel(value="CourseCheck对象", description="权限")
public class CourseCheck implements Serializable {
    @ApiModelProperty(value = "课程审核ID")
    @TableId
    private Integer courseCheckId;

    @ApiModelProperty(value = "课程ID")
    private String courseId;

    @TableField(exist=false)
    private String id;

    @ApiModelProperty(value = "审核状态")
    private String checkStatus;

    @ApiModelProperty(value = "审核人ID")
    private Integer checkUserId ;

    @ApiModelProperty(value = "审核内容")
    private String checkContent;

    @ApiModelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime checkTime;


    @TableField(exist=false)
    private Course course;

    private String cover;

    private String title;

    private Double price;

    private String status;

    @TableField(exist = false)
    private Subject subject;

    @TableField(exist = false)
    private String subjectName;

    @TableField(exist = false)
    private String subjectParentName;

    private String description;

    private static final long serialVersionUID = 1L;

}
